﻿namespace LogManager.Gui.Views.Templates
{
    using System.Windows;
    using System.Windows.Controls;

    public class MasterTemplate : ContentControl
    {
        public static readonly DependencyProperty TitleProperty =
            DependencyProperty.Register("Title", typeof(object),
            typeof(MasterTemplate),
            new UIPropertyMetadata());

        public static readonly DependencyProperty SubTitleProperty =
         DependencyProperty.Register("SubTitle", typeof(object),
         typeof(MasterTemplate),
         new UIPropertyMetadata());

        /// <summary>
        /// Initializes the <see cref="Master"/> class.
        /// </summary>
        static MasterTemplate()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(MasterTemplate),
                new FrameworkPropertyMetadata(typeof(MasterTemplate)));
        }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        public object Title
        {
            get { return GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        public object SubTitle
        {
            get { return GetValue(SubTitleProperty); }
            set { SetValue(SubTitleProperty, value); }
        }
    }

}
